package cn.edu.hznu.ocw.interceptors;

import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.AbstractInterceptor;
import com.opensymphony.xwork2.interceptor.PreResultListener;

public class FileDownloadInterceptor extends AbstractInterceptor {

	private static final long serialVersionUID = -7255568965943594738L;

	@Override
	public String intercept(ActionInvocation invocation) throws Exception {
		invocation.addPreResultListener(new PreResultListener(){

			@Override
			public void beforeResult(ActionInvocation invocation, String arg1) {
				
			}
			
		});
		return invocation.invoke();
	}

	
}
